import request from '@/utils/request'

export default{

    getOrderInfo(id){
            return request({
                url:`/eduorder/order/getOrderInfo/${id}`,
                method:'get'

            })
        },
        
        createOrder(courseId){
            return request({
                url:`/eduorder/order/createOrder/${courseId}`,
                method:'post'

            })
        },
        //生成二维码方法
        createNative(orderNo){
            return request({
                url:`/eduorder/pay-log/createNative/${orderNo}`,
                method:'get'

            })
        },
        //更新状态
        queryPayStatus(orderNo){
            return request({
                url:`/eduorder/pay-log/quertPayStatus/${orderNo}`,
                method:'get'

            })
        },
       

    }
